package com.example.eurekajob.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @version 1.0.0
 * @className: feignService
 * @description:
 * @author: zhangjunfa
 * @date: 2022/6/16 9:36
 */
@FeignClient(value = "eureka-admin")
public interface FeignService {

    /**
     * 测试消费Eureka-admin服务中的接口
     *
     * @return java.lang.String
     * @author rosszhang
     * @date 2022/6/16 11:27
     */
    @GetMapping("/testAdmin")
    public String testAdmin();
}
